<template>
  <div id="app">
    <div id="nav">
      <router-link to="/canvas">Canvas</router-link>|
      <router-link to="/canvasPro">CanvasPro</router-link>|
      <router-link to="/canvasDraggable">CanvasDraggable</router-link>|
      <router-link to="/svg">Svg</router-link>|
      <router-link to="/SvgPro">SvgPro</router-link>|
      <router-link to="/LineDraggable">LineDraggable</router-link>|
      <router-link to="/ConsecutiveLineDraggable"
        >ConsecutiveLineDraggable</router-link
      >
      <div class="box">{{ data }}</div>
      <div class="box">{{ baseUrl }}</div>
    </div>
    <router-view />
  </div>
</template>

<script>
import utils from "@/assets/utils.js";
export default {
  data() {
    return {
      data: utils.ip,
    };
  },
};
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
